<legend class='hyc-legend'>
    <span>{{subTitle || '添加用户'}}</span>
</legend>
<div class="panel panel-default">
    <div class="panel-heading">{{subTitle || '添加用户'}}</div>
    <div class="panel-body admin">
        <div class="row">
            <div class="col-md-offset-2 col-md-6">
                <div class="row margin-bottom-10">
                    <div class="col-md-4 text-right">公司名称：</div>
                    <div class="col-md-8">
                        <input class="input" ng-model="subObj.name" placeholder="请输入公司名称">
                    </div>
                </div>
                <div class="row margin-bottom-10">
                    <div class="col-md-4 text-right">用户名：</div>
                    <div class="col-md-8">
                        <input class="input" ng-model="subObj.realName" placeholder="请输入用户名">
                    </div>
                </div>
                <div class="row margin-bottom-10">
                    <div class="col-md-4 text-right">手机号：</div>
                    <div class="col-md-8">
                        <input class="input" ng-model="subObj.phone" placeholder="请输入手机号">
                    </div>
                </div>
                <div class="row margin-bottom-10" ng-hide="subObj.isEdit">
                    <div class="col-md-4 text-right">密码：</div>
                    <div class="col-md-8">
                        <input type="password" class="input" ng-model="subObj.password" placeholder="请输入密码">
                    </div>
                </div>
                <div class="row margin-bottom-10">
                    <div class="col-md-4 text-right">邮箱：</div>
                    <div class="col-md-8">
                        <input class="input" type="email" ng-model="subObj.email" placeholder="请输入邮箱">
                    </div>
                </div>
                <div class="row margin-bottom-10"></div>
                <div class="row margin-bottom-10">
                    <div class="col-md-offset-4 col-md-8 text-center">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="btn btn btn-default btn-block" onclick="javascript: history.go(-1);">返回</div>
                            </div>
                            <div class="col-md-6">
                                <div class="btn btn btn-warning btn-block" ng-click="saveSub()">保存</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>